import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";


//引入重置样式
import './assets/css/reset.css'
//引入图标库文件
import './assets/css/iconfont.css'
//引入swiper组件样式
//决定分页器和左右按钮的翻页样式
import 'swiper/swiper-bundle.min.css'

//基础样式
import 'swiper/swiper.min.css'
//引入fastclick模块
import FastClick from 'fastclick';
//将整个禁止延迟的操作应用到整个body标签内[整个网页]
FastClick.attach(document.body)

//引入axios
import axios from 'axios'
import VueAxios from 'vue-axios'

//所有的路由跳转后，所有页面的滚动条返回顶部
router.afterEach((to,from,next)=>{
	//所有组件跳转之后，滚动条置顶页面顶部
	window.scrollTo(0,0);
})
createApp(App).use(store).use(router).use(VueAxios,axios).mount("#app");
